<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加/编辑竞买报价 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="SHOP++ Team" />
<meta name="Copyright" content="SHOP++" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/admin/css/input.css" rel="stylesheet" type="text/css" />

<#if !id??>
	<#assign isAdd = true />
<#else>
	<#assign isEdit = true />
</#if>
</head>
<body class="input">
	<div class="body">
		<div class="inputBar">
			<h1><span class="icon">&nbsp;</span><#if isAdd??>添加拍卖品<#else>编辑拍卖品</#if></h1>
		</div>
		<div class="blank"></div>
		<form id="inputForm" class="validate" action="<#if isAdd??>auction!save.action<#else>auction!update.action</#if>" method="post" enctype="multipart/form-data" >
			<input type="hidden" name="id" value="${id}" />
			
			<table class="inputTable tabContent">
				<tr>
					<th>
						拍卖品名称:
					</th>
					<td>${(auction.product.name)!}
						
					</td>
				</tr>
				<tr>
					<th>
						货号:
					</th>
					<td>
						${(auction.product.productSn)!}
					</td>
				</tr>
			
				<tr>
					<th>
						起拍价:
					</th>
					<td>
						${(auction.product.price)!"0"}
					</td>
				</tr>
				<tr>
					<th>
						加价幅度:
					</th>
					<td>
						${(auction.product.marketPrice)!"0"}
						
					</td>
				</tr>
				
				<tr>
					<th>
						竞价:
					</th>
					<td>
					${(auction.price)!"0"}
					</td>
				</tr>
				
				<tr>
					<th>
						竞价人:
					</th>
					<td>
						${(auction.member.username)}
					</td>
				</tr>
				
				<tr>
					<th>
						竞价时间:
					</th>
					<td>
						${auction.modifyDate}
					</td>
				</tr>
				
				<tr>
					<th>
						状态:
					</th>
					<td>
					 <#switch auction.status>
               
               <#case "0">
   <input name="auction.status"  type="radio" checked  value="0">已生成
   <input name="auction.status"  type="radio"   value="1">已成交
   <input name="auction.status"  type="radio"   value="2">已失败
                   <#break>
   <#case "1">
    <input name="auction.status"  type="radio"   value="0">已生成
   <input name="auction.status"  type="radio"  checked  value="1">已成交
   <input name="auction.status"  type="radio"   value="2">已失败
                   <#break>
   <#case "2">                        
    <input name="auction.status"  type="radio"   value="0">已生成
   <input name="auction.status"  type="radio"    value="1">已成交
   <input name="auction.status"  type="radio"  checked  value="2">已失败
                   <#break>
  
                        <#default>
                        
   </#switch>
					</td>
				</tr>
				
			</table>
			
			<div class="buttonArea">
				<input type="submit" class="formButton" value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
			</div>
		</form>
	</div>
</body>
</html>